package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: HuaweiPayBean
 * @Desciption: 华为支付请求参数bean
 * @author: yichaohua
 * @date: 2018-11-20
 */
public class HuaweiPayBean extends NetBaseBean {

    public String out_trade_no;
    public String money;
    public String productName;
    public String productDesc;
    public String merchantId;
    public String applicationID;
    public String country;
    public String currency;
    public int sdkChannel;
    public String urlVer;
    public String merchantName;
    public String serviceCatalog;
    public String extReserved;
    public String url;
    public String sign;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        out_trade_no = jsonObject.optString("out_trade_no","");
        money = jsonObject.optString("money","");
        productName = jsonObject.optString("productName","");
        productDesc = jsonObject.optString("productDesc","");
        merchantId = jsonObject.optString("merchantId","");
        applicationID = jsonObject.optString("applicationID","");
        country = jsonObject.optString("country","");
        currency = jsonObject.optString("currency","");
        sdkChannel = jsonObject.optInt("sdkChannel",1);
        urlVer = jsonObject.optString("urlVer","");
        merchantName = jsonObject.optString("merchantName","");
        serviceCatalog = jsonObject.optString("serviceCatalog","");
        extReserved = jsonObject.optString("extReserved","");
        url = jsonObject.optString("url","");
        sign = jsonObject.optString("sign","");
    }
}
